package com.softtown.modules.message.service;

import com.softtown.common.service.BaseService;
import com.softtown.modules.message.entity.SysEmailContentEntity;

/**
 * @version v1.0
 * @ProjectName: softtown-aioffice
 * @ClassName: SysEmailContentService
 * @Description: 邮箱验证码Service层
 * @Author: fuming
 * @Date: 2019/7/11 10:03
 */
public interface SysEmailContentService extends BaseService<SysEmailContentEntity> {

    /**
     * @Title: getByEmail
     * @Description: 根据邮箱查出信息Service接口
     * @param @param [email]
     * @return @return com.softtown.modules.message.entity.SysEmailContentEntity
     * @author fuming
     * @throws
     * @date 2019/7/12 19:18
     */
    SysEmailContentEntity getByEmail(String email);

    /**
     * @Title: saveEmail
     * @Description: 保存邮箱信息Service接口
     * @param @param [sysEmailContentEntity]
     * @return @return java.lang.Boolean
     * @author fuming
     * @throws
     * @date 2019/7/12 19:18
     */
    void saveEmail(SysEmailContentEntity sysEmailContentEntity);

    /**
     * @Title: updateEmailCode
     * @Description: 更新邮箱信息Service接口
     * @param @param [sysEmailContentEntity]
     * @return @return java.lang.Boolean
     * @author fuming
     * @throws
     * @date 2019/7/12 19:19
     */
    void updateEmailCode(SysEmailContentEntity sysEmailContentEntity);
}
